#include "sq_register.h"
#include "script.h"


#include "Entity.h"
#include "EntityManager.h"

DECLARE_INSTANCE_TYPE(CEntity);
DECLARE_INSTANCE_TYPE(CEntityManager);

void registerSquirrel()
{

	SQClassDef<CEntity>("CEntity")
		.func(&CEntity::paint, "paint")
		.func(&CEntity::update, "update")
		;

	SQClassDefNoConstructor<CEntityManager>("CEntityManager")
		.staticFunc(&CEntityManager::getInstance, "getInstance")
		.func(&CEntityManager::sq_addEntity, "addEntity")
		.func(&CEntityManager::paint, "paint")
		.func(&CEntityManager::update, "update")
		;


}